package kr.hyosang.android.penfo.data;

import java.util.ArrayList;

public class ArticleViewData {
	public Article thisArticle;
	public ArrayList<Article> articleList;
	
	public ArticleViewData() {
	}
	
	public void clear() {
	    thisArticle.clear();
	    articleList.clear();
	}
	
	public void addListArticle(Article a) {
		addListArticle(a, null);
	}
	
	public void addListArticle(Article a, String page) {
		if(articleList == null) {
			articleList = new ArrayList<Article>();
		}
		
		if(page != null) {
			a.nListPage = page;
		}
		
		articleList.add(a);
	}
	
	public ArrayList<Article> getArticleList() {
		return this.articleList;
	}

}
